#!/usr/bin/env python
# -*- coding: utf-8 -*-
# @Date    : 2016-11-19 01:05:58
# @Author  : guoben (guoben.ly@qq.com)
# @Link    : https://git.oschina.net/guoben

from wsgiref.simple_server import make_server


def application(environ, start_response):
    start_response('200 Ok', [('Content-Type', 'text/html')])
    return '<h1>Hell,web!</h1>'


if __name__ == "__main__":
    httpd = make_server('', 8000, application)
    print "Serving HTTP on port 8000..."
    httpd.serve_forever()
